﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="True" CodeBehind="CreateSurvey.aspx.cs" Inherits="BSCMFF.Web.Pages.Surveys.Personalist.CreateSurvey" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">


    <script src="../../../JS/jquery-1.6.1.js" type="text/javascript"></script>
    <script src="../../../JS/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
    <script src="../../../JS/jQuery-form.js" type="text/javascript"></script>
    <script src="../../../JS/jquery-dynamic-form.js" type="text/javascript"></script>
<script src="../../../JS/myDynamicQuestionnaire.js" type="text/javascript"></script>

<script type="text/javascript">
    $(function () {
        $("#sortable").sortable();
    });
	</script>


<form id="formQuestionnaire" action="">
    
    <div id="alll">
        <h1 style="text-align:center"><asp:Label ID="LabelQuestionaire" runat="server" 
                Text="Questionaire" meta:resourcekey="LabelQuestionaireResource1"></asp:Label></h1>
        <asp:Panel ID="PanelDetails" runat="server" 
            meta:resourcekey="PanelDetailsResource1" >
            <bsc:SurveyDetails ID="sd" runat="server" IsEditMode="true" ></bsc:SurveyDetails>
        </asp:Panel>
       <%-- <telerik:RadButton ID="RadButtonConfirmDetails" runat="server" Text="Create Questions" 
        OnClick="RadButtonConfirmDetails_Click">
        </telerik:RadButton>--%>
        <asp:PlaceHolder ID="PlaceHolderQuestions" runat="server">
            <fieldset>
                <ul id="sortable">   
                    <li  id="Question" class="ui-state-default">
                        <div >
                            <input id="TextBoxQuestion" name="TextBoxQuestion" type="text"  style="width:500px" />
                            <div id="Answers" style="right:20px;top:5px" >
                                <div id="Answer">
                                    <input id="RadioButtonAnswer" name="RadioButtonAnswer" type="radio" disabled="disabled" />
                                    <input id="TextBoxAnswer" name="TextBoxAnswer" type="text" />
                                </div>
                                <span id="ButtonsAnswer" style="display:none">
                                    <a id="removeAnswer" href="">[-]</a> 
                                    <a id="addAnswer" href=""  >[+]</a>
                                </span>
                            </div>
                        </div>
                    </li>
                </ul>
                <p style="display:none"><span><a id="removeQuestion" href="">[-]</a> 
                <a id="addQuestion" href="" class="QuestionClass"  visible="false">[+]</a></span></p>
            </fieldset>    
        </asp:PlaceHolder>
    </div>
    </form>
  <%--  <input id="submitButton" name="submitButton" value="Submit"
type="button"  />--%>
<br /><br />
    <telerik:RadButton id="RadButtonSubmit" runat="server" Text="Submit"
        OnClientLoad="OnClientLoad" meta:resourcekey="RadButtonSubmitResource1" >
    </telerik:RadButton>
    <telerik:RadButton ID="RadButtonBack" runat="server" Text="Back" 
        OnClientClicked="RedirectSurvey" OnClientLoad="OnClientLoad" 
        meta:resourcekey="RadButtonBackResource1"></telerik:RadButton>
     <%--<fieldset>
      <legend>Results</legend>
      <div id="console"></div>
    </fieldset>--%>
    <%--<asp:Button ID="more" runat="server" OnClick="RadButtonBack_Click1" Text="more" />--%>

</asp:Content>
